package com.dm.cloud.images.common.po;

import com.dm.cloud.basepo.po.BasePo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
   * @author hcx
   * @type ImagesAppArrange.java
   * @desc ImagesAppArrange
   */

@Entity
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "T_IMAGES_APP_ARRANGE")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "ImagesAppArrange")
public class ImagesAppArrange extends BasePo {

      /** 应用ID **/ 
      @Schema(description = "应用ID")
      @Column(name = "app_code")
      private String appCode;
      /** 完成条件:logRegex_前缀代表监听日志行的正则表达式  time_前缀表示指定时间（秒） **/ 
      @Schema(description = "完成条件:logRegex_前缀代表监听日志行的正则表达式  time_前缀表示指定时间（秒）")
      @Column(name = "success_condition")
      private String successCondition;
      /** 执行步骤:从0开始,同一步骤中的 **/ 
      @Schema(description = "执行步骤:从0开始,同一步骤中的")
      @Column(name = "step")
      private Integer step;
      /** 当前步骤中的顺序:从0开始 **/ 
      @Schema(description = "当前步骤中的顺序:从0开始")
      @Column(name = "step_index")
      private Integer stepIndex;
      /** 容器ID **/ 
      @Schema(description = "容器ID")
      @Column(name = "container_id")
      private String containerId;
      /** 节点ID **/ 
      @Schema(description = "节点ID")
      @Column(name = "node_id")
      private String nodeId;

      @Schema(description = "超时时间:默认120秒")
      @Column(name = "timeout")
      private Integer timeout;

}
